/*
* Copyright 2017 Yonyou Auto Information Technology（Shanghai） Co., Ltd. All Rights Reserved.
*
* This software is published under the terms of the YONYOU Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : marketing-service-wechatpush
*
* @File name : Result.java
*
* @Author : Administrator
*
* @Date : 2017年12月25日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年12月25日    Administrator    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/
	
package com.yonyou.gmmc.service.wechatpush.entity;


/**
*
* @author Administrator
* @date 2017年12月25日
*/

public class Result<T>
{
  private Integer returnFlag;
  private T data;
  private String errorMsg;
  
  public Integer getReturnFlag()
  {
    return this.returnFlag;
  }
  
  public void setReturnFlag(Integer returnFlag)
  {
    this.returnFlag = returnFlag;
  }
  
  public T getData()
  {
    return this.data;
  }
  
  public void setData(T data)
  {
    this.data = data;
  }
  
  public String getErrorMsg()
  {
    return this.errorMsg;
  }
  
  public void setErrorMsg(String errorMsg)
  {
    this.errorMsg = errorMsg;
  }
  
  public Result(Integer returnFlag, String errorMsg)
  {
    this.returnFlag = returnFlag;
    this.errorMsg = errorMsg;
  }
  
  public Result(Integer returnFlag, T data, String errorMsg)
  {
    this.returnFlag = returnFlag;
    this.data = data;
    this.errorMsg = errorMsg;
  }
  
  public Result() {}
  
  public String toString()
  {
    return "Result [ returnFlag=" + this.returnFlag + ", errorMsg=" + this.errorMsg + ", data=" + this.data + "]";
  }
}
